package com.lagou.edu.service;

import com.lagou.edu.entity.Token;

import java.util.Optional;

/**
 * @Author: yeqingyun
 * @Date: 2020/11/20 16:33
 */
public interface TokenService {

    void add(Token token);

    Optional<Token> getByToken(String token);


    boolean isEmailExist(String email);

}
